<?php
namespace Base\Controller;
use Todo\Controller\ApiController;
use Todo\Util\ArrayUtil;

class StudentController extends ApiController {

    //过滤查询条件
    protected function _filter(&$where){
        $keywords = I('request.keywords/s');
        if($keywords) $where['name'] = array('like', '%'.$keywords.'%');
    }
}